//
//  CustomExternLabel.m
//  NongWanCloud
//
//  Created by YueWen on 2018/1/18.
//  Copyright © 2018年 YueWen. All rights reserved.
//

#import "RITLExternLabel.h"

@implementation RITLExternLabel


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.extensionSpace = 2;
    }
    return self;
}


- (CGSize)intrinsicContentSize
{
    CGSize superSize = [super intrinsicContentSize];
    
    if (superSize.width == 0 && superSize.height == 0) {
        return CGSizeMake(0, 0);
    }
    
    //进行拓宽
    superSize.width +=  (self.extensionSpace * 3);
    return superSize;
}



@end
